package com.appwoo.txtws.adapter;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.appwoo.txtws.bean.ImprotentInfoBean;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ImprotentInfoAdapter extends ArrayAdapter<ImprotentInfoBean>
{
  private boolean show = false;
  private Map<Integer, View> viewMap = new HashMap();

  public ImprotentInfoAdapter(Activity paramActivity, List<ImprotentInfoBean> paramList)
  {
    super(paramActivity, 0, paramList);
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    View localView = (View)this.viewMap.get(Integer.valueOf(paramInt));
    ImprotentInfoBean localImprotentInfoBean;
    String str1;
    String str2;
    label106: TextView localTextView3;
    if (localView == null)
    {
      localView = ((Activity)getContext()).getLayoutInflater().inflate(2130903125, null);
      localImprotentInfoBean = (ImprotentInfoBean)getItem(paramInt);
      TextView localTextView1 = (TextView)localView.findViewById(2131493169);
      if (localImprotentInfoBean.getType() != null)
        break label184;
      str1 = "";
      localTextView1.setText(str1);
      TextView localTextView2 = (TextView)localView.findViewById(2131493170);
      if (localImprotentInfoBean.getUrl() != null)
        break label194;
      str2 = "";
      localTextView2.setText(str2);
      localTextView3 = (TextView)localView.findViewById(2131493171);
      if (localImprotentInfoBean.getNum() != null)
        break label204;
    }
    label184: label194: label204: for (String str3 = ""; ; str3 = localImprotentInfoBean.getNum())
    {
      localTextView3.setText(str3);
      if (paramInt % 2 == 0)
        ((RelativeLayout)localView.findViewById(2131493168)).setBackgroundResource(2130837719);
      this.viewMap.put(Integer.valueOf(paramInt), localView);
      return localView;
      str1 = localImprotentInfoBean.getType();
      break;
      str2 = localImprotentInfoBean.getUrl();
      break label106;
    }
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.adapter.ImprotentInfoAdapter
 * JD-Core Version:    0.6.2
 */